package com.collectplus.express.menu;

import java.util.ArrayList;

import android.app.Activity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.collectplus.express.R;

import droid.frame.activity.base.BaseAdapterExt;

public class AboutAdapter extends BaseAdapterExt<String> {

	public AboutAdapter(ArrayList<String> items, Activity context) {
		super(items, context);
	}

	@Override
	public View getView(int position, View convertView, ViewGroup parent) {
		ViewHolder viewHolder = null;
		if (convertView == null) {
			convertView = LayoutInflater.from(context).inflate(R.layout.item_about, null);
			viewHolder = new ViewHolder();
			viewHolder.name = (TextView) convertView.findViewById(R.id.item_about_name);
			convertView.setTag(viewHolder);
		} else {
			viewHolder = (ViewHolder) convertView.getTag();
		}

		viewHolder.name.setText(getItem(position));
		return convertView;
	}

	private class ViewHolder {
		private TextView name;
	}

}
